package vip.mtdp.asset.core.dal.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description
 * @Author Evans.wang
 * @since 2023/10/29 09:21
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_posting_rule")
public class PostingRule implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String bizType;

    private String journalType;

    private Integer seq;

    /**
     * 0=单边记账
     * 1=复试记账
     */
    private Integer doubleEntry;

    /**
     * instant=交易发生时，同步实时记账
     * delay=交易发生后，系统延迟记账
     * trigger=交易发生后，外部触发记账
     */
    private String method;

    private String payerAccountExpr;
    private String payerCoinExpr;
    private String payerAmountExpr;

    private String payeeAccountExpr;
    private String payeeCoinExpr;
    private String payeeAmountExpr;

    private String feeAccountExpr;
    private String feeCoinExpr;
    private String feeAmountExpr;

    //private String h;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
